import { Service } from 'egg';
export default class others extends Service {
  public async getNotice () {
    let res = await this.ctx.model.Noticebar.findAll()
    if(res) {
      return res
    }else{
      throw new Error()
    }
  }
}